export class BaseEntity {
  id: string
  status: 'Y' | 'N' | 'D'
  constructor(props: BaseEntity) {
    this.id = props.id
    this.status = props.status
  }
}

interface Account {
  id: string
  name: string
  username: string
  [key: string]: any
}

export class DataEntity extends BaseEntity {
  createBy: Account
  updateBy: Account
  createDate: string
  updateDate: string
  remarks?: string

  constructor(props: DataEntity) {
    super(props)
    this.createBy = props.createBy
    this.updateBy = props.updateBy
    this.createDate = props.createDate
    this.updateDate = props.updateDate
    this.remarks = props.remarks
  }
}
